package com.ruoyi.library.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.library.api.query.DigitalTwinComponentQuery;
import com.ruoyi.library.api.vo.DigitalTwinComponentVO;
import com.ruoyi.library.domain.DtsDigitalTwinComponent;
import com.ruoyi.library.mapper.DtsDigitalTwinComponentMapper;
import com.ruoyi.library.service.IDtsDigitalTwinComponentService;
import org.springframework.stereotype.Service;

/**
 * 构件Service业务层处理
 *
 * @author ruoyi
 * @date 2024-05-16
 */
@Service
public class DtsDigitalTwinComponentServiceImpl extends ServiceImpl<DtsDigitalTwinComponentMapper, DtsDigitalTwinComponent> implements IDtsDigitalTwinComponentService {

    @Override
    public Page<DigitalTwinComponentVO> componentInfoPage(DigitalTwinComponentQuery digitalTwinComponentQuery) {
        return baseMapper.componentInfoPage(new Page<>(digitalTwinComponentQuery.getPageNum(), digitalTwinComponentQuery.getPageSize()), digitalTwinComponentQuery);
    }

}
